const  key = 'admin_token'

const getAdminToken=() => {
    return  localStorage.getItem(key)
}

const setAdminToken=(token) => {
    return localStorage.setItem(key,token)
}

const removeAdminToken=() => {
    localStorage.removeItem('persist:root')
    localStorage.removeItem(key)
}

export {
    getAdminToken,
    setAdminToken,
    removeAdminToken
}